package com.ruoyi.system.WebController;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.ByOrg;
import com.ruoyi.system.service.IByOrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author: Zhangyuting
 * @Desctription: TODO
 * @Date: Created in 2025/9/2 15:01
 * @Version: 1.0
 */
@RestController
@RequestMapping("/byWeb/org")
public class WebByOrgController extends BaseController {

    @Autowired
    private IByOrgService byOrgService;

    /**
     * 查询ByOrg列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ByOrg byOrg)
    {
        startPage();
        List<ByOrg> list = byOrgService.selectByOrgList(byOrg);
        return getDataTable(list);
    }

}
